<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String baseInfoJson= (String)request.getAttribute("baseInfoJson");
String drugAllergyInfoJson= (String)request.getAttribute("drugAllergyInfoJson");

%>
<link rel="stylesheet" href="${basePath}assets/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css"/>
<link rel="stylesheet" href="${basePath}assets/css/basic.css"/>
<link rel="stylesheet" href="${basePath}assets/css/medical_record/home_page.css"/>
<script type="text/javascript" src="${basePath}assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/js/medical_record/edit_drug_allergy_info.js"></script>
<input type="hidden" id="basePath" value="${basePath }"/>
<form action="${basePath}medical_record/edit_home_page_drug_allergy" style="width: 100%;"
	method="post">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<input type="hidden" id="drugAllergyRecordCount" value="0"/>
	<table width="100%" cellspacing="0" border="0" cellpadding="0"
		id="drugAllergyRecords">
		<thead>
			 <tr>
				<td colspan="11" class="tdLabel_7">

					<div style="float:right">
						<input type="submit" value="保存" class="btn"><!--  <input
							type="button" value="新增" onclick="addDrugAllergyRecord()"
							class="btn"> -->
					</div></td>
			</tr> 
			<tr align="center"  >
				<!-- <td class="tdLabel_4" width="22%">过敏药物编码</td> -->
				<td class="tdLabel_4" align="center">过敏药物名称</td>
				<!-- <td class="tdLabel_4" width="8%">操作</td> -->
			</tr>
		</thead>
		<tbody>
			
		</tbody>
	</table>
</form>
<div hidden="true">
	<table>
		<tr id="template_drug_allergy_tr" align="center">
			<!-- <td class="tdLabel_8">
				<select name="drugAllergyRecords[0].drugAllergyTypeCode" class="drugAllergyTypeSelect" style="width:80%">
					
					
				</select>
				<input type="hidden"
				name="drugAllergyRecords[0].drugAllergyTypeName">
			</td> -->
			<td class="tdLabel_5" align="center" style="width:100%"><input  style="width:100%"
				name="drugAllergyRecords[0].drugAllergyName" ></td>
			<!-- <td class="tdLabel_8" align="center"><a class="int"
				onclick="deleteDrugAllergyRecord(this)">删除 </a></td> -->
		</tr>
	</table>
</div>
<script>
	$(function(){
		var baseInfoJson= <%=baseInfoJson%>;
		
		var drugAllergyInfoJson= <%=drugAllergyInfoJson%>;
		
		initPage(baseInfoJson,drugAllergyInfoJson);
	});
</script>